#!/usr/bin/env python

# Copyright 2008 German Aerospace Center (DLR)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Documentation for distutils: http://docs.python.org/dist/dist.html

# 从Python 3.10开始，distutils 模块已被弃用，并在Python 3.12中被移除。因此，如果您正在使用较新的Python版本，建议使用 setuptools 来替代 distutils。
#from distutils.core import setup
from setuptools import setup, find_packages


# https://www.cnblogs.com/goldsunshine/p/8872623.html 【python打包工具distutils】
# 一行命令： python setup.py sdist

setup(name='gitChecker',
      version='0.1',
      description='gitChecker is a framework for Git hook scripts.',
      long_description='gitChecker is a framework for Git pre-commit hooks in order to implement checks of the to be commited files before they are commited. For example, you can check for the code style or unit tests. The output of the checks can be send by mail or be written into a file or simply print to the console. you can also use the framework to implement post-commit hooks  in order to sync status to other system. For example, you can write commit info to zentao or jira.',
      author='fulizhe',
      author_email='lqzkcx3@gmail.com',
      maintainer='fulizhe',
      maintainer_email='lqzkcx3@gmail.com',
      url='https://gitee.com/lqzkcx3/gitchecker',
      packages = ['checks', 'handlers', 'modules'],
      scripts=['Main.py'],    
      data_files=[('config', ['gitcheckerconfig.ini'])],  
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Intended Audience :: System Administrators',
          'License :: OSI Approved :: Apache Software License',
          'Operating System :: POSIX',
          'Programming Language :: Python',
          'Topic :: Software Development',
          'Topic :: Software Development :: Quality Assurance',
          'Topic :: Software Development :: Bug Tracking',
          'Topic :: Software Development :: Version Control',
          ],
     )